-- GENERATED SPELL FOR [High Chief Bristlelimb] --


function spell0_17702(pUnit, Event) --@Demoralizing Roar,Self--
pUnit:FullCastSpellOnTarget(20753,pUnit)
pUnit:RegisterEvent('Sorts_17702', 30320, 1)
end

function spell1_17702(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17702', 635, 1)
end

function Sorts_17702(pUnit, Event)
local choix_sorts_17702 = math.random(0, 1)
if choix_sorts_17702 == 0 then
pUnit:RegisterEvent('spell0_17702', 1, 1)
end
if choix_sorts_17702 == 1 then
pUnit:RegisterEvent('spell1_17702', 1, 1)
end
end

function mob17702_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17702', math.random(1500, 3000), 1)
end

function mob17702_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17702_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17702_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17702, 1, 'mob17702_Action')
RegisterUnitEvent(17702, 2, 'mob17702_Leave')
RegisterUnitEvent(17702, 3, 'mob17702_Kill')
RegisterUnitEvent(17702, 4, 'mob17702_Die')
